package examples.jsf.context.impl;

import examples.jsf.Application;
import examples.jsf.component.UIViewRoot;
import examples.jsf.context.FacesContext;
import examples.jsf.context.PartialViewContext;

import javax.el.ELContext;

/**
 * @author Bill
 * @version 2013-05-29
 */
class FacesContextImpl extends FacesContext {

    FacesContextImpl() {
        setInstance(this);
    }

    @Override
    public PartialViewContext getPartialViewContext() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public Application getApplication() {
        throw new UnsupportedOperationException();
    }

    @Override
    public ELContext getELContext() {
        return null;
    }

    @Override
    public UIViewRoot getViewRoot() {
        return new UIViewRoot();
    }

    @Override
    public boolean getRenderResponse() {
        return false;
    }

    @Override
    public void renderResponse() {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public boolean getResponseComplete() {
        return false;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void responseComplete() {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void release() {
        setInstance(null);
    }

}
